package com.miracle.mango.entity.role;

import com.miracle.mango.entity.user.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @description:
 * @author: wangxf
 * @date: Created in 2020/8/22 23:31
 */
@Mapper
public interface RoleMapper {

    Role getById(@Param("id") String id);

    int save(Role role);

    int savePermission(@Param("id") String id,
                       @Param("roleId") String roleId,
                       @Param("permissionId") String permissionId);

    int update(Role role);

    int removeById(@Param("id") String id);

}
